package org.glutenberg.util;

import java.io.IOException;
import java.io.InputStream;

import javax.microedition.io.file.FileConnection;

public class FileConnectionStreamSource implements StreamSource {

	private FileConnection connection;

	public FileConnectionStreamSource(FileConnection connection){
		this.connection = connection;
	}

	public InputStream openInputStream() throws IOException {
		return this.connection.openInputStream();
	}
}
